package org.jeecg.modules.compilation.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(description = "TypeDocument查询DTO")
public class SearchcIDocDraftDTO  {
    @ApiModelProperty(value = "文件id")
    private String id;
    /**
     * 当前页
     */
    @ApiModelProperty(value = "当前页", example = "1")
    private long pageNo = 1;
    /**
     * 发文字号
     */
    @ApiModelProperty(value = "发文字号")
    private String documentIdentifier;

    @ApiModelProperty(value = "url")
    private String businessCategoryUrl;
    /**
     * 文件题名
     */
    @ApiModelProperty(value = "文件题名")
    private String documentTitle;

    @ApiModelProperty(value = "文件编号")
    private  String documentSn;
    /**
     * 状态（1启用，0不启用）
     */
    @ApiModelProperty(value = "状态（1启用，0不启用）")
    private String enableFlag;


    /**
     * 每页的数量
     */
    @ApiModelProperty(value = "每页的数量", example = "20")
    private long pageSize = 10;
    /**
     * 发布日期
     */
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd ")
    @ApiModelProperty(value = "开始日期")
    private java.util.Date publishedDate;

    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd ")
    @ApiModelProperty(value = "结束日期")
    private java.util.Date abolitionDate;

}